﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200091D RID: 2333
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class HitMonsterBattleInfo : IMessage<HitMonsterBattleInfo>, IMessage, IEquatable<HitMonsterBattleInfo>, IDeepCloneable<HitMonsterBattleInfo>, IBufferMessage
	{
		// Token: 0x17001D8C RID: 7564
		// (get) Token: 0x060068AD RID: 26797 RVA: 0x001190BB File Offset: 0x001172BB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<HitMonsterBattleInfo> Parser
		{
			get
			{
				return HitMonsterBattleInfo._parser;
			}
		}

		// Token: 0x17001D8D RID: 7565
		// (get) Token: 0x060068AE RID: 26798 RVA: 0x001190C2 File Offset: 0x001172C2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return HitMonsterBattleInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17001D8E RID: 7566
		// (get) Token: 0x060068AF RID: 26799 RVA: 0x001190D4 File Offset: 0x001172D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return HitMonsterBattleInfo.Descriptor;
			}
		}

		// Token: 0x060068B0 RID: 26800 RVA: 0x001190DB File Offset: 0x001172DB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public HitMonsterBattleInfo()
		{
		}

		// Token: 0x060068B1 RID: 26801 RVA: 0x001190E3 File Offset: 0x001172E3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public HitMonsterBattleInfo(HitMonsterBattleInfo other) : this()
		{
			this.monsterBattleType_ = other.monsterBattleType_;
			this.targetMonsterEntityId_ = other.targetMonsterEntityId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060068B2 RID: 26802 RVA: 0x00119114 File Offset: 0x00117314
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public HitMonsterBattleInfo Clone()
		{
			return new HitMonsterBattleInfo(this);
		}

		// Token: 0x17001D8F RID: 7567
		// (get) Token: 0x060068B3 RID: 26803 RVA: 0x0011911C File Offset: 0x0011731C
		// (set) Token: 0x060068B4 RID: 26804 RVA: 0x00119124 File Offset: 0x00117324
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MonsterBattleType MonsterBattleType
		{
			get
			{
				return this.monsterBattleType_;
			}
			set
			{
				this.monsterBattleType_ = value;
			}
		}

		// Token: 0x17001D90 RID: 7568
		// (get) Token: 0x060068B5 RID: 26805 RVA: 0x0011912D File Offset: 0x0011732D
		// (set) Token: 0x060068B6 RID: 26806 RVA: 0x00119135 File Offset: 0x00117335
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint TargetMonsterEntityId
		{
			get
			{
				return this.targetMonsterEntityId_;
			}
			set
			{
				this.targetMonsterEntityId_ = value;
			}
		}

		// Token: 0x060068B7 RID: 26807 RVA: 0x0011913E File Offset: 0x0011733E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as HitMonsterBattleInfo);
		}

		// Token: 0x060068B8 RID: 26808 RVA: 0x0011914C File Offset: 0x0011734C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(HitMonsterBattleInfo other)
		{
			return other != null && (other == this || (this.MonsterBattleType == other.MonsterBattleType && this.TargetMonsterEntityId == other.TargetMonsterEntityId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060068B9 RID: 26809 RVA: 0x0011918C File Offset: 0x0011738C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.MonsterBattleType != MonsterBattleType.None)
			{
				num ^= this.MonsterBattleType.GetHashCode();
			}
			if (this.TargetMonsterEntityId != 0U)
			{
				num ^= this.TargetMonsterEntityId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060068BA RID: 26810 RVA: 0x001191EA File Offset: 0x001173EA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060068BB RID: 26811 RVA: 0x001191F2 File Offset: 0x001173F2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060068BC RID: 26812 RVA: 0x001191FC File Offset: 0x001173FC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.MonsterBattleType != MonsterBattleType.None)
			{
				output.WriteRawTag(32);
				output.WriteEnum((int)this.MonsterBattleType);
			}
			if (this.TargetMonsterEntityId != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.TargetMonsterEntityId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060068BD RID: 26813 RVA: 0x00119258 File Offset: 0x00117458
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.MonsterBattleType != MonsterBattleType.None)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.MonsterBattleType);
			}
			if (this.TargetMonsterEntityId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.TargetMonsterEntityId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060068BE RID: 26814 RVA: 0x001192B0 File Offset: 0x001174B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(HitMonsterBattleInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.MonsterBattleType != MonsterBattleType.None)
			{
				this.MonsterBattleType = other.MonsterBattleType;
			}
			if (other.TargetMonsterEntityId != 0U)
			{
				this.TargetMonsterEntityId = other.TargetMonsterEntityId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060068BF RID: 26815 RVA: 0x00119300 File Offset: 0x00117500
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060068C0 RID: 26816 RVA: 0x0011930C File Offset: 0x0011750C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 32U)
				{
					if (num != 96U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.TargetMonsterEntityId = input.ReadUInt32();
					}
				}
				else
				{
					this.MonsterBattleType = (MonsterBattleType)input.ReadEnum();
				}
			}
		}

		// Token: 0x040027EF RID: 10223
		private static readonly MessageParser<HitMonsterBattleInfo> _parser = new MessageParser<HitMonsterBattleInfo>(() => new HitMonsterBattleInfo());

		// Token: 0x040027F0 RID: 10224
		private UnknownFieldSet _unknownFields;

		// Token: 0x040027F1 RID: 10225
		public const int MonsterBattleTypeFieldNumber = 4;

		// Token: 0x040027F2 RID: 10226
		private MonsterBattleType monsterBattleType_;

		// Token: 0x040027F3 RID: 10227
		public const int TargetMonsterEntityIdFieldNumber = 12;

		// Token: 0x040027F4 RID: 10228
		private uint targetMonsterEntityId_;
	}
}
